<?php

use Illuminate\Support\Facades\Route;
use Modules\Intelligent\Http\Controllers\IntelligentController;
use Modules\Intelligent\Http\Controllers\Otheroutbound;

Route::prefix('intelligent')->group(function(){
	/*
	其他入库单
	*/
	Route::apiResource('intelligent', IntelligentController::class);
	//next
	Route::GET('type', [IntelligentController::class, 'typeData']);
	//扫描接口
	Route::GET('otherBarcode/{id}', [IntelligentController::class, 'otherBarcode']);
	//品名查询
	Route::GET('productname', [IntelligentController::class, 'productname']);
	Route::POST('Auditinterface/{id}',[IntelligentController::class, 'Auditinterface']);//审核接口
	Route::PUT('Modifyinterface/{id}',[IntelligentController::class, 'Modifyinterface']);//修改接口接口

	/*
	其出库单
	*/
	Route::apiResource('otheroutbound', Otheroutbound::class);
	Route::GET('otherBarcodename/{id}', [Otheroutbound::class, 'otherBarcodename']);//PDA箱号查询接口
	Route::POST('interfacedata/{id}',[Otheroutbound::class, 'interfacedata']);//审核接口
	Route::GET('typedata',[Otheroutbound::class, 'typedata']);//类型接口


});
